package com.jp.knowledge.my.adapter;

import android.content.Context;
import android.support.annotation.NonNull;

import com.jp.knowledge.R;
import com.jp.knowledge.my.base.RecycleVAdapter;
import com.jp.knowledge.my.base.RecycleVHolder;
import com.jp.knowledge.my.model.OptionSelectModel;

import java.util.List;

/**
 * @author gzejia 978862664@qq.com
 */
public class ShareInviteAdapter extends RecycleVAdapter<OptionSelectModel> {

    public ShareInviteAdapter(Context context, @NonNull List<OptionSelectModel> list) {
        super(context, list);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_dialog_share;
    }

    @Override
    public void onBind(RecycleVHolder holder, int position) {
        OptionSelectModel model = getData(position);
        holder.setImageResource(R.id.item_share_iv, model.mImage);
        holder.setTextView(R.id.item_share_tv, model.mContent);
    }

}
